package com.heu.blood.bloodtest.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.heu.blood.bloodtest.entity.BloodTestEntity;
import com.heu.blood.bloodtest.vo.BloodSamplePatientTestVo;
import com.heu.blood.bloodtest.vo.BloodSampleTestVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 血液检验表
 * 
 * @author lrz
 * @email lrz@heu.com
 * @date 2023-08-28 17:09:06
 */
@Mapper
public interface BloodTestDao extends BaseMapper<BloodTestEntity> {

    /**
     * 分页条件联表查询血液样本检测信息
     * @param page
     * @param wrapper
     * @return
     */
    IPage<BloodSampleTestVo> selectSampleTestPage(IPage<BloodSampleTestVo> page, @Param(Constants.WRAPPER) QueryWrapper<BloodSampleTestVo> wrapper);

    /**
     * 分页条件联表查询病人血液样本检测信息
     * @param page
     * @param wrapper
     * @return
     */
    IPage<BloodSamplePatientTestVo> selectSamplePatientTestPage(IPage<BloodSamplePatientTestVo> page, @Param(Constants.WRAPPER) QueryWrapper<BloodSamplePatientTestVo> wrapper);
}
